projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3d68af
)
themingbackground: Use fill() instead of clip() + paint()
author
Benjamin Otte
<otte@redhat.com>
Wed, 8 Oct 2014 03:23:11 +0000
(
05:23
+0200)
committer
Benjamin Otte
<otte@redhat.com>
Wed, 8 Oct 2014 03:23:11 +0000
(
05:23
+0200)
It's simpler code and I believe it's faster, too.
gtk/gtkthemingbackground.c
patch
|
blob
|
history
diff --git
a/gtk/gtkthemingbackground.c
b/gtk/gtkthemingbackground.c
index acc830f331949b6d23473c7b3f5308264c04d8a0..6c57d7b59d76c6eed43de1d0288e7f632eee8a34 100644
(file)
--- a/
gtk/gtkthemingbackground.c
+++ b/
gtk/gtkthemingbackground.c
@@
-65,14
+65,9
@@
_gtk_theming_background_paint_color (GtkThemingBackground *bg,
(_gtk_style_context_peek_property (bg->context, GTK_CSS_PROPERTY_BACKGROUND_CLIP),
n_values - 1));
- cairo_save (cr);
_gtk_rounded_box_path (&bg->boxes[clip], cr);
- cairo_clip (cr);
-
gdk_cairo_set_source_rgba (cr, bg_color);
- cairo_paint (cr);
-
- cairo_restore (cr);
+ cairo_fill (cr);
}
static void